//
// Created by Yucheng on 6/2/17.
//

#include "test.hpp"

BOOST_AUTO_TEST_SUITE( dao_user )

BOOST_AUTO_TEST_CASE( create )
{
    TestApp app;
    app.setup();

    int errCode = diylane::dao::User::singleton().create("crazbot", "123456781");
    std::cout << "errCode: " << errCode << std::endl;
}

BOOST_AUTO_TEST_CASE( login )
{
    TestApp app;
    app.setup();

    int errCode = diylane::dao::User::singleton().login("crazbot", "123456781");
    std::cout << "errCode: " << errCode << std::endl;
}

BOOST_AUTO_TEST_SUITE_END()
